/**
 * Created by windo on 2016/11/23.
 */
function ajax({method="get",url="default_url"}={}) {
    console.log(method,url);
}
function ajax2({method,url}={method:'get',url:'default_url'}) {
    console.log(method,url);
}
ajax();
ajax2();